
// OvtItemGenDlg.h : header file
//

#pragma once


// COvtItemGenDlg dialog
class COvtItemGenDlg : public CDialogEx
{
// Construction
public:
	COvtItemGenDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_OVTITEMGEN_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;
	CString m_strProjGuid;
	CString m_strSlnGuid;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
	virtual void OnOK();
	virtual void OnCancel();

	int CreateProjVcproj(__in HANDLE hFile);
	DWORD CreateProjSln(__in HANDLE hFile);
	DWORD CreateAllSln(__in HANDLE hFile);
	DWORD EditAllSln(__in HANDLE hFile);
	DWORD CreateProjNameH(__in HANDLE hFile);
	DWORD CreateProjNameCpp(__in HANDLE hFile);
	DWORD CreateProjNameRc(__in HANDLE hFile);
	DWORD CreateProjNameRc2(__in HANDLE hFile);
	DWORD CreateStdAfxCpp(__in HANDLE hFile);
	DWORD CreateStdAfxH(__in HANDLE hFile);
	DWORD CreateResourceH(__in HANDLE hFile);
	DWORD CreateReadmeTxt(__in HANDLE hFile);

	DWORD WriteToFile(__in CString strWrite, __in HANDLE hFile);

public:
	afx_msg void OnClose();
	afx_msg void OnBnClickedCancel();
	afx_msg void OnBnClickedOk();
	CString m_strProjName;
};
